Skip to content

Bunny.net media library integration with OAuth authentication#9

Open
martinjagodic wants to merge 12 commits intomasterfrom
bunny-library
Open

Bunny.net media library integration with OAuth authentication#9
martinjagodic wants to merge 12 commits intomasterfrom
bunny-library

Conversation

@martinjagodic
Copy link

Summary

Integrate Bunny.net media library into Decap CMS, implementing an OAuth authentication flow to manage user credentials securely. This change enhances the media management capabilities by allowing users to authenticate and access their Bunny.net storage seamlessly.

Test plan

Tested the integration by verifying the login prompt appears when credentials are missing and ensuring that files from Bunny.net are listed and can be inserted correctly when authenticated. All functionality was validated through Cypress tests.

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

cute bunny

- Added BunnyAuthManager to handle OAuth-style authentication and credential storage.
- Introduced BunnyManagementApi to fetch storage zone passwords using Account API Key.
- Updated BunnyClient to support optional API key and added methods for authentication checks.
- Enhanced BunnyWidget to manage authentication state and display login prompt.
- Created LoginPrompt component for user authentication interface.
- Modified index.js to handle OAuth callback and manage authentication flow.
- Updated config.yml to remove API key from configuration.
- Adjusted types to include AuthState for managing authentication state.
- improve URL parameter handling; enhance FileGrid
- FileUpload components with styled components
@netlify
Copy link

netlify bot commented Mar 4, 2026

Deploy Preview for pm-decap-cms ready!

Name Link
🔨 Latest commit d8f6903
🔍 Latest deploy log https://app.netlify.com/projects/pm-decap-cms/deploys/69aa89f86bd5dd00081a8660
😎 Deploy Preview https://deploy-preview-9--pm-decap-cms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant